<script lang="ts" setup>
import { ApiTaskDetails } from "@@/api/wk/index";
import dayjs from "dayjs";
const props = defineProps<{
  task_progress: ApiTaskDetails.TaskProgress[] | undefined;
}>();
</script>
<template>
  <Ccard
    v-for="item in props.task_progress"
    class="auto-MT-sm"
  >
    <div v-if="item.user_type === 2">
      {{ $t("wei-ke-wan-cheng-shuo-ming") }}
    </div>
    <div v-else>
      {{ $t("gu-zhu-tui-hui-shuo-ming") }}
    </div>
    <div class="C-T3">
      {{ item.title }}
    </div>
    <CimagesPreview v-if="item.images" :images="item.images" />
    <div class="T-A-R T-S-sm">
      {{ dayjs(item.created_at).format("YYYY-MM-DD HH:mm:ss") }}
    </div>
  </Ccard>
</template>
<style lang="scss" scoped></style>
